package ld.oauth.blog.service.article.impl;

import ld.oauth.blog.model.po.article.Abvert;
import ld.oauth.blog.mapper.article.AbvertMapper;
import ld.oauth.blog.service.article.AbvertService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ld
 * @since 2022-09-24
 */
@Service
public class AbvertServiceImpl extends ServiceImpl<AbvertMapper, Abvert> implements AbvertService {

    @Override
    public List<Abvert> abvertList(Integer position) {
        return this.lambdaQuery().eq(Abvert::getType,position).list();
    }
}
